package com.gem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 刘聪
 * Created  on 2020/12/16
 */
@Data
@TableName(value = "sb_product")
public class Product implements Serializable {

    private static final long serialVersionUID = -5548033689272560521L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     *分类id
     */
    private Integer categoryId;
    private String name;
    /**
     *图片地址
     */
    private String subImages;
    /**
     * 商品详情
     */
    private String detail;
    private Double price;
    /**
     * 库存数量
     */
    private Integer stock;
    @TableLogic
    private Integer deleted;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
